# RUN: tfg-translate -graphdef-to-mlir %s | FileCheck %s

# Since there are no uses of the output for the Add node, it is imported without any output.
# CHECK:      tfg.graph
# CHECK-DAG: %[[ADD:.*]], %{{.*}} = Add(%[[PLACEHOLDER:.*]], %[[PLACEHOLDER0:.*]]) name("Add") {T = i32, _mlir_fulltype = #tf_type.full_type<tensor>, _tpu_replicate = "cluster"} : (tensor<*xi32>, tensor<*xi32>) -> (tensor<*xi32>)
# CHECK-DAG: %[[PLACEHOLDER]], %{{.*}} = Placeholder name("input0") {dtype = i32, shape = #tf_type.shape<*>} : () -> (tensor<*xi32>)
# CHECK-DAG: %[[PLACEHOLDER0]], %{{.*}} = Placeholder name("input1") {dtype = i32, shape = #tf_type.shape<*>} : () -> (tensor<*xi32>)

node {
  name: "Add"
  op: "Add"
  input: "input0"
  input: "input1"
  attr {
    key: "T"
    value {
      type: DT_INT32
    }
  }
  attr {
    key: "_tpu_replicate"
    value {
      s: "cluster"
    }
  }
  experimental_type {
    type_id: TFT_TENSOR
  }
}
node {
  name: "input0"
  op: "Placeholder"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
}
node {
  name: "input1"
  op: "Placeholder"
  attr {
    key: "dtype"
    value {
      type: DT_INT32
    }
  }
}
